////
////  HomeServcie.swift
////  EastNetWorkProject
////
////  Created by 伊伊 on 2023/11/13.
////
//import Alamofire
//struct Student:Codable{
//    
//}
//
//
//import UIKit
//fileprivate enum HomeApi{
//    case Login(String)
//    case loadInfo
//    case newArticles
//    
//}
//extension HomeApi:Requestable{
//  
//    
//    var path: String {
//        switch self{
//          case .loadInfo:
//            return "/loadInfo"
//     
//        case .Login(_):
//            return "/login"
//           
//        case .newArticles:
//            return URLPathString.newsArticl
//        }
//        return ""
//    }
//    
//    var parmeters: [String : String]{
//        return [String:String]()
//    }
//}
//
//struct HomeServcie{
//    static func test(){
//        HomeApi.newArticles.fetchData { (responseJson:Result<Student,NSError>) in
//            
//        }
//
//    }
//    
//    
//}
//
//
//
////class HomeServcie: NSObject{
////    var baseURL: URL = URL(string: "")!
////    
////    var path: String = ""
////    
////
////    
////    func test(){
////        
////        
////        
////        
//////        self.requestData { responseJson in
//////            if let dic = responseJson?["data"].dictionaryObject{
//////                let jsonDecoder = JSONDecoder()
//////                let data = try! JSONSerialization.data(withJSONObject: dic)
//////                let model = try? jsonDecoder.decode(Student.self, from: data)
//////            }
//////        } failure: { error in
//////            
//////        }
////    }
////}
